<?php
session_start();

define('TPL_MODULE','./modules/');
define('CLASS_DIR','class/');
define('TPL_DIR_ADMIN','templates/admin/');
define('SRC_DIR_ADMIN','sources/admin/');
define('CLASS_DIR_ADMIN','class/');


include("./includes/config.php");
include("./includes/constant.php");

include(CLASS_DIR."info.class.php");
include(CLASS_DIR."banned.class.php");
//BannedIp::Check();


include("./includes/functions.php");
include("./includes/va_db.php");
include("./class/categories.class.php");

$do   = isset($_GET["do"])  ? $_GET["do"] :'main';
$act   = isset($_GET["act"])  ? $_GET["act"]  : "";
$page   = isset($_GET["page"])  ? $_GET["page"]  : '1';//for paging
$title_main = "";

if(!isset($_SESSION["store_login"]) || $do=="login"){
	$do="login";	
	require("./kam/admin/login.html");
	
}
else{
	
	/*$file_name = "./kam/modules/".$do."/admin/".$do.".php";
	echo $file_name;
	if (!file_exists($file_name)){
		$msg="There is not this function!!!";
		$p='./admin.php';
	
		page_transfer($msg,$p);
	}
	else{
		require($file_name);
	}
	include("./admin/admin.php");*/
}
?>